﻿using System.Data.SqlClient;

namespace UpLoadDataOnTime.DataBaseUtil
{
    public class SqlCollection
    {
        public SqlType sqlType { get; set; }

        public string sqlText { get; set; }

        public SqlParameter[] parameters { get; set; }

        public SqlCollection(SqlType sqlType, string sqlText, SqlParameter[] parameters)
        {
            this.sqlType = sqlType;

            this.sqlText = sqlText;

            this.parameters = parameters;
        }

        public enum SqlType
        {

            Insert = 1,

            Delete = 2,

            Update = 3,

            Procedure = 4

        }
    }
}
